import request from '@/utils/request'

// 查询认证信息列表
export function listAuth(query) {
  var url
  switch (parseInt(query.type)) {
    case 1:
      url = "designer"
      break;
    case 2:
      url = "workroom"
      break;
    case 3:
      url = "company"
      break;
    default:
      url = "designer/" + query.status
      break;
  }
  return request({
    url: '/system/qua/' + url,
    method: 'get',
    params: query
  })
}

// 审核
export function examine(data) {
  return request({
    url: '/system/qua/examine/designer',
    method: 'post',
    params: data
  })
}


// 删除认证信息
export function delAuth(authId) {
  return request({
    url: '/system/qua/delete/' + authId,
    method: 'get'
  })
}




